package cn.kgc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {
    @RequestMapping("login")
    public String testlogin(Model model,String userName, String password){
        model.addAttribute("name",userName);
        model.addAttribute("pwd",password);
        return "success";  //逻辑视图名解析成物理视图
    }


}
